package com.cb.domain.model.system;


import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * Media Base Java Bean, base class for the model, mapped directly to database table
 * 
 * Avoid changing this file if not necessary, will be overwritten. 
 *
 * TODO: add class/table comments
 */
@Entity
@Table(name="media")
public class Media implements Serializable {

    protected Long mediaId;
	protected String imageSrc;
	protected Integer sort;
	protected Integer status;
	protected java.util.Date createTime;
	protected String url;


    

	/**
	 * 	 * @return Short
     * @hibernate.id column="mediaId" type="java.lang.Short" generator-class="native"
	 */
	
	@Id     
    @GeneratedValue(generator="Id_Generator")
    @GenericGenerator(name="Id_Generator", strategy="com.cb.common.util.IdGenerator")
	public Long getMediaId() {
		return this.mediaId;
	}
	
	/**
	 * Set the mediaId
	 */	
	public void setMediaId(Long aValue) {
		this.mediaId = aValue;
	}	

	/**
	 * 	 * @return String
	 * @hibernate.property column="imageSrc" type="java.lang.String" length="50" not-null="true" unique="false"
	 */
	
	@Column(name = "imageSrc")	
	public String getImageSrc() {
		return this.imageSrc;
	}
	
	/**
	 * Set the imageSrc
	 * @spring.validator type="required"
	 */	
	public void setImageSrc(String aValue) {
		this.imageSrc = aValue;
	}	

	/**
	 * 	 * @return Integer
	 * @hibernate.property column="sort" type="java.lang.Integer" length="10" not-null="false" unique="false"
	 */
	
	@Column(name = "sort")	
	public Integer getSort() {
		return this.sort;
	}
	
	/**
	 * Set the sort
	 */	
	public void setSort(Integer aValue) {
		this.sort = aValue;
	}	

	/**
	 * 	 * @return Integer
	 * @hibernate.property column="status" type="java.lang.Integer" length="10" not-null="true" unique="false"
	 */
	
	@Column(name = "status")	
	public Integer getStatus() {
		return this.status;
	}
	
	/**
	 * Set the status
	 * @spring.validator type="required"
	 */	
	public void setStatus(Integer aValue) {
		this.status = aValue;
	}	

	/**
	 * 	 * @return java.util.Date
	 * @hibernate.property column="createTime" type="java.util.Date" length="10" not-null="true" unique="false"
	 */
	
	@Column(name = "createTime")	
	public java.util.Date getCreateTime() {
		return this.createTime;
	}
	
	/**
	 * Set the createTime
	 * @spring.validator type="required"
	 */	
	public void setCreateTime(java.util.Date aValue) {
		this.createTime = aValue;
	}

	@Column(name = "url")	
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}	
	
	

}